package com.ask.forMe.config;

import com.ask.forMe.model.entity.UserContext;

public class UserContextHolder {
    private static final ThreadLocal<UserContext> tl = new ThreadLocal<>();

    public static void setUserContext(UserContext userContext) {
        tl.set(userContext);
    }

    public static UserContext getUserContext() {
        return tl.get();
    }
    public static void removeUserContext() {
        tl.remove();
    }
}
